<!DOCTYPE html>
<html lang="zh">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>@yield('title', '卖家中心')</title>
    <meta name="keywords" content="@yield('keywords', setting('keywords'))">
    <meta name="description" content="@yield('description', setting('description'))">
    <meta name="render" content="webkit">
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="csrf-token" content="{{ csrf_token() }}">
    <link href="{{asset('images/common/favicon.png')}}" rel="icon">
    <link href="{{asset('css/vendor/bootstrap.css')}}" rel="stylesheet" type="text/css">
    <link href="{{asset('css/iconfont/iconfont.css')}}" rel="stylesheet" type="text/css">
    <link href="{{asset('css/seller/index.css')}}" rel="stylesheet" type="text/css">
    @yield('styles')
    <script src="{{asset('js/manifest.js')}}" type="text/javascript"></script>
    <script src="{{asset('js/vendor.js')}}" type="text/javascript"></script>
    <script src="{{asset('js/base.js')}}" type="text/javascript"></script>
    @yield('scripts')
</head>
<body>
<div id="app">
    <div class="seller-header">
        <div class="seller-header-bd">
            <div class="float-right">
                <div class="header-r dropdown">
                    <div style="cursor: pointer;" data-hover="dropdown" aria-haspopup="true" aria-expanded="false">
                        <img src="{{avatar($uid)}}" class="avatar">
                        <span class="username">{{$username}}</span>
                    </div>
                    <div class="dropdown-menu dropdown-menu-right">
                        <a class="dropdown-item" href="{{seller_url('profile')}}">个人资料</a>
                        <a class="dropdown-item" href="{{url('logout')}}">退出账号</a>
                    </div>
                </div>
            </div>
            <div class="logo"><img src="{{asset('images/common/maijia_logo.png')}}"></div>
        </div>
    </div>
    <div class="seller-main">
        <div class="seller-menu">
            <div class="sider">
                <div class="nav-model">
                    <a href="{{seller_url()}}" class="{{$sideMenu == 'home' ? 'active' : ''}}">
                        <i class="iconfont icon-homefill"></i>
                        <span>首页</span>
                    </a>
                </div>
                <div class="nav-model">
                    <a href="{{seller_url('sold')}}" class="{{$sideMenu == 'sold' ? 'active' : ''}}">
                        <i class="iconfont icon-formfill"></i>
                        <span>订单管理</span>
                    </a>
                </div>
                <div class="nav-model">
                    <div class="label">
                        <i class="iconfont icon-goodsfill"></i>
                        <span>商品管理</span>
                    </div>
                    <div class="children">
                        <a href="{{seller_url('item')}}" class="{{$sideMenu == 'item' ? 'active' : ''}}">商品管理</a>
                        <a href="{{seller_url('catlog')}}" class="{{$sideMenu == 'catlog' ? 'active' : ''}}">商品分类</a>
                    </div>
                </div>
                <div class="nav-model">
                    <div class="label">
                        <i class="iconfont icon-shopfill"></i>
                        <span>店铺设置</span>
                    </div>
                    <div class="children">
                        <a href="{{seller_url('shop')}}" class="{{$sideMenu == 'shop' ? 'active' : ''}}">资料设置</a>
                        <a href="{{seller_url('auth')}}" class="{{$sideMenu == 'auth' ? 'active' : ''}}">店铺资质</a>
                        <a href="{{seller_url('deal')}}" class="{{$sideMenu == 'deal' ? 'active' : ''}}">交易设置</a>
                        <a href="{{seller_url('kefu')}}" class="{{$sideMenu == 'kefu' ? 'active' : ''}}">客服管理</a>
                        <a href="{{seller_url('profile')}}" class="{{$sideMenu == 'profile' ? 'active' : ''}}">个人资料</a>
                        <a href="{{seller_url('sender')}}" class="{{$sideMenu == 'sender' ? 'active' : ''}}">发货信息</a>
                        <a href="{{seller_url('freight')}}" class="{{$sideMenu == 'freight' ? 'active' : ''}}">运费模板</a>
                    </div>
                </div>
            </div>
        </div>
        <div class="seller-mainframe">
            <div class="frame-content">
                @yield('content')
            </div>
        </div>
    </div>
</div>

@yield('foot')
</body>
</html>
